package com.syxbyi._3game;

public enum Suit {
    DIAMOND,        // 方块
    SPADE,          // 黑桃
    HEART,          // 红桃
    CLUB;           // 梅花

    public static String toString(Suit s) {
        if (s == null) {
            return "";
        }
        switch (s) {
            case CLUB:
                return "梅花";
            case HEART:
                return "红桃";
            case SPADE:
                return "黑桃";
            case DIAMOND:
                return "方块";
            default:
                return null;
        }
    }
}
